package com.jake.mongo.vo;

import com.jake.mongo.constant.MongoCollections;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = MongoCollections.USER)
public class User {

    @Id
    private Integer uid;

    @Field
    private String username;

    @Field
    private String password;

    @Field
    private String position;

}
